<template>
    <div class="login">
        <el-card>
            <el-row type="flex" class="substance">
                <el-col :span="12">
                    <img src="../../assets/img/icon.png" alt="">
                </el-col>
                <el-col :span="12" class="from">
                    <h2>农机农资租售管理系统</h2>
                    <div class="input">
                        <el-row type="flex" justify="start" style="border-bottom: 1px solid #ccc;">
                            <el-col :span="4">
                                <i class="el-icon-user el-icon"/>
                            </el-col>
                            <el-col :span="20">
                                <input type="text" v-model="form.username" placeholder="请输入用户名称">
                            </el-col>
                        </el-row>
                    </div>
                    <div class="input">
                        <el-row type="flex" justify="start" style="border-bottom: 1px solid #ccc;">
                            <el-col :span="4">
                                <i class="el-icon-unlock el-icon"/>
                            </el-col>
                            <el-col :span="20">
                                <input type="password" v-model="form.password" placeholder="请输入用户密码">
                            </el-col>
                        </el-row>
                    </div>
                    <el-button type="primary" class="btn" size="small" @click="login">
                        登陆
                    </el-button>
                    <div class="forget">
                        <span>如需要账户请联系管理员</span>
                    </div>
                </el-col>
            </el-row>
        </el-card>
    </div>
</template>

<script src="./Login.js"/>
<style scoped lang="less" src="./Login.less"/>
